﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Metodesa.Logic;
using METODESA.Server.Data.METODESA.Entity;

namespace Metodesa.Views.Home
{
    public partial class ReportesRepIns : Page
    {
        private static HtmlTable tabla;

        protected void Page_Load(object sender, EventArgs e)
        {
            Lista.Visible = false;

            if (Session["User"] != null)
            {
                Empleado usuario = (Empleado)Session["User"];
            }
            else
            {   // Si no existe una session redirecciono al Index
                Response.Redirect("../../Views/Home/Index.aspx", true);
            }
        }

        protected void Clientes_Reparacion_Click(object sender, EventArgs e)  //Clientes con mas Reparaciones
        {
            tabla = ReportesRepInsLogic.ClienteReparacion();

            Lista.Visible = true;
            Lista.Controls.Add(tabla);
        }


    }
}
